package com.itheima.io2.properties;

import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;

/**
 * @author Anomaly
 * @date 2023/2/10 0:33
 */
public class PropertiesDemo {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.put("admin", "123456");
        properties.put("root", "666");
        properties.put("user", "8888");
        System.out.println(properties);

        properties.store(new FileWriter("file-io/src/test05.properties"), "0001");
    }
}
